<%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
	<head>		
		<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
		<link rel="shortcut icon" href="/resources/favicon.ico" type="image/x-icon"/>
		<link rel="stylesheet" type="text/css" href="/resources/styles.css">
		<title>Homegrown Cuisine - Admin</title>				
	</head>	
	<body background="">		
		<h1>Welcome Administrator</h1>

		<a href="/admin">Back</a>		
		
		<div id="plantingDiv">
			<h2>Planting instruction</h2>
			<p>${message}</p>
			<form:form method="POST" modelAttribute="plantingInstruction" enctype="multipart/form-data" accept-charset="UTF-8">
				<table>
	        		<tr>
	            		<td>Title:</td>
	            		<td><form:input path="title"/></td> 
	        		</tr>
	        		<tr>
	            		<td>Common information:</td>
	            		<td><form:textarea path="commonInformation" rows="3" cols="20"/></td>
			        </tr>
	        		<tr>
	            		<td>Sowing:</td>
	            		<td><form:input path="sowing"/></td>
			        </tr>
	        		<tr>
	            		<td>Germination time:</td>
	            		<td><form:input path="germinationTime"/></td>
			        </tr>
	        		<tr>
	            		<td>Harvest:</td>
	            		<td><form:input path="harvest"/></td>
			        </tr>
	        		<tr>
	            		<td>Watering interval:</td>
	            		<td><form:input path="wateringInterval"/></td>
			        </tr>
	        		<tr>
	            		<td>Fertilize:</td>
	            		<td><form:input path="fertilize"/></td>
			        </tr>
	        		<tr>
	            		<td>Cut:</td>
	            		<td><form:input path="cut"/></td>
			        </tr>
			        <tr>
	            		<td>Hibernation:</td>
	            		<td><form:input path="hibernation"/></td>
			        </tr>
			        <tr>
	            		<td>Material:</td>
	            		<td><form:input path="material"/></td>
			        </tr>
			        <tr>
	            		<td>Recommended products:</td>
	            		<td><form:input path="recommendedProducts"/></td>
			        </tr>
			        <tr>
	  					<td>Image:</td>
	  					<td><form:input path="recipeImage" type="file"/></td>
	  				</tr>
			        <tr>
			            <td colspan="2">
			              <input type="submit" value="Save" />
			            </td>
			        </tr>
	      		</table>
			</form:form>	
		</div>						
	</body>	
</html>